import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';
import {SysUser} from "../module/system-management/sys-user/sys-user.type";
import {UrlApi} from "../frame";
import {HttpRequestClient} from '../frame/http-request-client/http-request-client';
@Injectable()
export class LoginService {

    constructor() { }

    login(qm: SysUser, callback: {success: (result) => void, error: (result) => void}): Observable<any> {
        return HttpRequestClient.PUT(UrlApi.sysUser.login, qm, callback);
    }
}
